<?php
/**
 * Created by PhpStorm.
 * User: 王世鹏
 * Date: 2018/3/8
 * Time: 14:42
 */
namespace app\index\validate;
use think\Validate;
class User extends Validate
{
    protected $rule = [
        "nickname" => "require|max:5"
    ];
    protected $field = [
    'nickname'  => '名称',
    'age'   => '年龄',
    'email' => '邮箱',
    ];
//    protected $message  =   [
//        'nickname.require' => '名称必须',
//        'nickname.max'     => '名称最多不能超过25个字符'
//    ];

}